The Smart ComboBox Component > FSmartComboBoxClass.autoAdd(bool)

 

FSmartComboBox.autoAdd(bool)

Availability

Macromedia Flash Player 6.

Usage

myCombo.autoAdd(bool);

Parameters

bool

Boolean; When this is set to true, the user's input will automatically be added to the history when the user presses the ENTER key. When this is set to false, the user's input will not automatically be added. The default value is true.

Returns

Nothing.

Description

Allows the developer to toggle the auto add feature of input items. If autoAdd is called passing a parameter of true, items will automatically be added when the user presses the ENTER key. If autoAdd is called passing a parameter of false, all items will have to be added through the addItem or addItemAt method. Items that are added through autoAdd are set to persistent.

Example

The following example shows how to turn autoAdd off.

myCombo.autoAdd(false);

See also

FSmartComboBox.addItem
FSmartComboBox.addItemAt